---
title: "Understanding AI Decisions"
icon: "magnifying-glass"
description: "See exactly why the AI responded the way it did"
---

## What's This?

Debug mode shows you the thinking behind AI responses - what information it used, why it made certain choices, and how it formed its answers.

## Why It's Useful

<CardGroup cols={2}>
  <Card title="Transparency" icon="glasses">
    See exactly what information the AI used
  </Card>
  <Card title="Training" icon="book">
    Identify knowledge gaps and improvement areas
  </Card>
  <Card title="Quality" icon="star">
    Ensure responses meet your standards
  </Card>
  <Card title="Trust" icon="heart">
    Build confidence in AI decisions
  </Card>
</CardGroup>

## How to Use Debug Mode

<Steps>
  <Step title="Find the Conversation">
    Filter to see AI conversations
    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full aspect-video rounded-lg"
      src="/images/filter.mp4"
    />
  </Step>
  
  <Step title="View AI's Reasoning">
    Click the debug icon to see details
    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full aspect-video rounded-lg"
      src="/images/debug-mode.mp4"
    />
  </Step>
  
  <Step title="Analyze the Components">
    Review three key areas:
    - **Actions**: Steps the AI took
    - **Knowledge**: Information sources used
    - **Keywords**: Search terms utilized
  </Step>
</Steps>

## Developer Mode

Need debug info in your widget? Enable it like this:

```javascript
initOpenScript({
  // Other options...
  debug: true  // Enables console logs and UI debugging
})
```

<Note>
Debug mode in widgets is great for development but should be disabled in production
</Note>

Learn more about [widget configuration options](/widget/embed#available-options)
